<% this.title = '标签' %>
<% include header %>
<style>
    .ui.label {
        margin: .14285714em
    }
</style>
<div class="padding">
    <h1 class="ui center aligned header">标签</h1>
    <div style="font-content">
	<% for ( let node of nodes ) { %>
	    <h2 class="ui header"> <%= node.name %> </h2>
	    <% for ( let tag of tags ) if ( tag.color == node.color ) { %>
                 <a href="/problems/tag/<%= tag.id %>" class="ui tiny <%= node.color %> label"> <%= tag.name %> </a>
            <% } %>
	<% } %>
    </div>
</div>
<% include footer %>
